package com.dd.service;

import com.dd.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface UserService {

    //查询全部用户
    List<User> selectAll();

    User selectById(Integer id);

    //新增用户
    void insert(User user);

    //修改用户
    void update(User user);

    //根据id删除用户
    void delete(Integer id);
}
